<!DOCTYPE html>
<html lang="en">

<head>
  <meta charset="UTF-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <title>添加用户</title>
  <link rel="stylesheet" href="../assets/lib/layui/css/layui.css">
  <link rel="stylesheet" href="../assets/css/user/user.css">

</head>
</head>

<body>
  <div class="layui-card">
    <div class="layui-card-header">用户列表</div>
    <div class="layui-card-body">
      <table class="layui-table">
        <colgroup>
          <col width="100">
          <col width="300">
          <col width="300">
          <col width="300">
          <col>
        </colgroup>
        <thead>
          <tr>
            <th>ID</th>
            <th>账号名称</th>
            <th>昵称</th>
            <th>邮箱</th>
            <th>操作</th>
          </tr>
        </thead>
        <tbody id="tb">

          <!-- <tr>
            <td>许闲心</td>
            <td>2016-11-28</td>
            <td>于千万人之中遇见你所遇见的人，于千万年之中，时间的无涯的荒野里…</td>
          </tr> -->
        </tbody>
      </table>
      <div id="userPage"></div>
    </div>
  </div>

  <!-- 重置密码模板 -->
  <script src="" type="text/html" id="resetFormTpl">
  <form id="resetForm" class="layui-form" action="">
  <div class="layui-form-item">
    <label class="layui-form-label">密码</label>
    <div class="layui-input-block">
      <input type="password" name="password" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <label class="layui-form-label">确认密码</label>
    <div class="layui-input-block">
      <input type="password" name="repassword" required  lay-verify="required" placeholder="请输入标题" autocomplete="off" class="layui-input">
    </div>
  </div>
  <div class="layui-form-item">
    <div class="layui-input-block">
      <button class="layui-btn" lay-submit lay-filter="formDemo">提交</button>
      <button type="reset" class="layui-btn layui-btn-primary">重置</button>
    </div>
  </div>
  </form>
  </script>

  <script src="" type="text/html" id="userTpl">
    {{each data v i}}
   <tr>
      <td>{{v.id}}</td>
      <td>{{v.username}}</td>
      <td>{{v.nickname}}</td>
      <td>{{v.email}}</td>
      <td>
            <button type="button" class="layui-btn layui-btn layui-btn-xs"  >
              <a style="color: #fff" target="iframeArea" href="./edit.html?id={{v.id}}">编辑</a>
            </button>
            <button type="button" class="layui-btn layui-btn-xs layui-btn-danger delBtn" data-index="{{v.id}}" >删除</button>
            <button type="button" class="layui-btn layui-btn-xs layui-btn-normal  resetBtn" data-index="{{v.id}}" >重置密码</button>
      </td>
</tr>
{{/each}}
  </script>
  <script src="../assets/lib/layui/layui.all.js"></script>
  <script src="../assets/lib/jquery.js"></script>
  <script src="../assets/lib/template-web.js"></script>
  <script src="../assets/js/common.js"></script>
  <script src="../assets/js/user/user.js"></script>
</body>

</html>